//用于显示班级人员信息的grid表单的checkBox
var classesMemberGridCheckBox = Ext.create('Ext.selection.CheckboxModel', {
    listeners: {
        selectionchange: function (sm, selections) {
            classesMemberGrid.down('#deleteButton').setDisabled(
                selections.length === 0);
        }
    }
});

//用于显示班级列表的checkBox
var classesGridCheckBox=Ext.create('Ext.selection.CheckboxModel', {
    listeners: {
        selectionchange: function (sm, selections) {
            classesGrid.down('#deleteClassesButton').setDisabled(selections.length === 0);
        }
    }
});

//用于添加班级成员选择班级成员的grid的checkBox
var chooseClassesMemberAddGridCheckBox=Ext.create('Ext.selection.CheckboxModel', {
    listeners: {
        selectionchange: function(sm, selections) {
            chooseClassesMemberAddGridWin.down('#sureButton').setDisabled(
                selections.length === 0);
        }
    }
});